package BlogMybatis.blog.mapper;

import BlogMybatis.blog.pojo.Type;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Brandt
 * @since 2020-06-07
 */
@Mapper
public interface TypeMapper extends BaseMapper<Type> {

    Type getTypeByName(@Param("name") String name);

    List<Type> getIndexType();

    List<Type> getAllType();
}
